/*
 * @Author: luojianfeng
 * @Date: 2023-03-06 14:22:18
 * @LastEditTime: 2023-03-06 14:22:22
 * @LastEditors: luojianfeng
 * @Description:
 */
import * as monacoEditor from 'monaco-editor'

export type EditorConstructionOptions = NonNullable<
  Parameters<typeof monacoEditor.editor.create>[1]
>

export type Monaco = typeof monacoEditor
export interface InitProps {
  el: HTMLElement
  value?: string
  language: string
  options?: EditorConstructionOptions
  readOnly?: boolean
  i18n?: 'zh_CN' | 'en'
  theme?: 'vs' | 'hc-black' | 'vs-dark'
}
